import request from '@/utils/request'

// 查询房源列表
//修改
export function listMenu(query) {
  return request({
    url: '/housing/house/list',
    method: 'get',
    params: query
  })
}
// 查询集中式房源(添加功能) 独立配置
export function prifacilitylist() {
  return request({
    url: '/housing/fensan/prifacilitylist',
    method: 'get',
  })
}
// 查询集中式房源(添加功能) 公共配置
export function pubfacilitylist() {
  return request({
    url: '/housing/fensan/pubfacilitylist',
    method: 'get',
  })
}
// 查询集中式房源(添加功能) 楼盘
export function prolist() {
  return request({
    url: '/housing/fensan/loulist',
    method: 'get',
  })
}

// 添加分散式房源(添加功能)
export function savefensan(save) {
  return request({
    url: '/housing/fensan/savefensan',
    method: 'post',
    params: save
  })
}
// 添加集中式房源(添加功能)
export function savejizhong(save) {
  return request({
    url: '/housing/fensan/savejizhong',
    method: 'post',
    params: save
  })
}


// 查询公共房态图
export function listfangtai(query) {
  return request({
    url: '/housing/fangtai/list',
    method: 'get',
    params: query
  })
}
// 查询集中式房态图
export function listfangjizhong(query) {
  return request({
    url: '/housing/fangtai/listjizhong',
    method: 'get',
    params: query
  })
}
// 查询集中式房态图
export function listfangfensan(query) {
  return request({
    url: '/housing/fangtai/listfensan',
    method: 'get',
    params: query
  })
}
//省
export function getsheng() {
  return request({
    url: '/housing/fangtai/getsheng',
    method: 'get',
  })
}
//市
export function getshi(query) {
  return request({
    url: '/housing/fangtai/getshi',
    method: 'get',
    params: query
  })
}
//县
export function getxian(query) {
  return request({
    url: '/housing/fangtai/getxian',
    method: 'get',
    params: query
  })
}
